<!--
 * @Author: 千锋爱佛僧
 * @公众号: 大前端私房菜
 * @Slogan: 千锋精品教程，好学得不像实力派！
-->
<template>
  <div>
    <Test name="三丰" :score="score" @change-score="handleScore" />
  </div>
</template>

<script setup lang="ts">
import { ref, provide } from "vue";
import Test from "./test.vue";
const score = ref<number>(100);
const handleScore = (n: number) => {
  score.value = n;
};

provide("msg", "你好，Test老弟");
</script>

<style scoped></style>
